package com.gtw.command;

public class ConcreteCommand extends Command {
    private Receiver receiver;

    /**
     * 传递命令接受者
     */
    public ConcreteCommand(Receiver receiver) {
        this.receiver = receiver;
    }

    public void execute() {
        this.receiver.doSomething();
    }
}
